import request from '../request'

//患者文章列表
export const queryArticleList = params => request.globalRequest(`aos/article/articleList`, 'GET', params)

//医生查询文章详情
export const articleDetailSysById = params => request.globalRequest(`aos/article/articleDetailSys/${params.params.id}`, 'GET', params)


//患者查询文章详情
export const articleDetailById = params => request.globalRequest(`aos/article/articleDetail/${params.params.id}`, 'GET', params)


//医生的文章列表
export const myArticleList = params => request.globalRequest(`aos/article/myArticleList`, 'GET', params)

//修改文章
export const updateArticle = params => request.globalRequest(`aos/article/updateArticle`, 'PUT', params)

//添加文章
export const addArticle = params => request.globalRequest(`aos/article/addArticle`, 'POST', params)

//删除文章
export const deleteArticle = params => request.globalRequest(`aos/article/delete`, 'DELETE', params)

